package com.netinfo.springboot.exception;

import com.netinfo.springboot.enums.ResultEnum;

public class MyException extends RuntimeException {
    private Integer code;

    public MyException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code=resultEnum.getCode();
    }


}
